<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>聊天室-登录</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    form {
      width: 500px;
      height: 300px;
      background-color: #f5f5f5;
      border-radius: 20px;
      box-shadow: 0 0 20px gray;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    p {
      margin-bottom: 20px;
    }

    p span {
      font-size: 18px;
      color: #333;
      font-family: '微软雅黑';
      font-weight: 700;
    }

    p input {
      outline: none;
      height: 30px;
      border: 2px solid #c7c6c6;
      padding: 5px;
      box-sizing: border-box;
      border-radius: 5px;
    }

    button {
      width: 80px;
      height: 40px;
      background-color: #c7c6c6;
      border: none;
      border-radius: 10px;
      cursor: pointer;
    }
  </style>
</head>

<body>
  <form action="/dologin" method="post">
    <p><span>账号:</span> <input type="text" name="username" id=""></p>
    <p><span>密码:</span> <input type="password" name="password" id=""></p>
    <button>登录</button>
  </form>
</body>

</html>